//
//  SINAStudentAlertPhoneViewController.m
//  sinashebao
//
//  Created by  androidlongs on 2017/12/27.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import "SINAStudentAlertPhoneViewController.h"
#import "SINASettingAlertPhongInputViewController.h"

@interface SINAStudentAlertPhoneViewController ()
//提交数据 按钮
@property (weak, nonatomic) IBOutlet UIButton *commitAlertPhoneButton;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;

@end

@implementation SINAStudentAlertPhoneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"修改手机号";
    [self.view setBackgroundColor:[UIColor colorWithHexString:@"#eeeeee"]];
    //设置lable的圆角显示
    self.commitAlertPhoneButton.layer.cornerRadius =5;
    //设置lable的边框 宽度为1
    self.commitAlertPhoneButton.layer.borderWidth=0;
    //设置lable的边框颜色
    self.commitAlertPhoneButton.layer.borderColor=[UIColor redColor].CGColor;
    //设置 显示大小范围为 border内容范围中
    self.commitAlertPhoneButton.clipsToBounds = YES;
    [self.commitAlertPhoneButton setBackgroundColor: [UIColor colorWithRed:0/255 green:198.0/255 blue:174.0/255 alpha:0.8f]];
    
    
}
- (IBAction)commitAlertDataFunction:(UIButton *)sender {
    SINASettingAlertPhongInputViewController *alertPhoneController = [[SINASettingAlertPhongInputViewController alloc]initWithNibName:@"SINASettingAlertPhongInputViewController" bundle:nil];
    [self.navigationController pushViewController:alertPhoneController animated:YES];
}

-(void)viewWillAppear:(BOOL)animated{
    SINAUserModel *userModel = [[SINACommonUserHelper share] getUserModel];
    if (userModel!=nil&&userModel.userPhone!=nil&&![userModel.userPhone isEqualToString:@""]) {
        self.phoneLabel.text=[NSString stringWithFormat:@"绑定手机号为:%@", userModel.userPhone];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
